import Vue from 'vue'
import App from './App'

import store from './store'
import cache from './utils/cache.js'
import util from './utils/util.js'

// 引入全局uView
import uView from "./uview-ui";
Vue.use(uView);

// 全局弹窗登录组件
import popupLogin from './components/popup-login/index.vue'
Vue.component('popup-login', popupLogin)

// 全局navbar组件
import coustomNavbar from './components/coustom-navbar/index.vue'
Vue.component('coustomNavbar', coustomNavbar)

// 全局tabbar组件
import coustomTabbar from './components/coustom-tabbar/index.vue'
Vue.component('coustomTabbar', coustomTabbar)

// 全局挂载
Vue.prototype.$store = store;
Vue.prototype.$cache = cache; //缓存
Vue.prototype.$util = util; //工具处理

import configs from './config/app.js'

App.mpType = 'app'


const app = new Vue({
	...App,
	store
})
app.$mount();
